const qs = require('querystring')
module.exports = (req,res,next)=>{
    let str = ''
    req.on('data', chunk=>str+=chunk)
    req.on('end',()=>{
        req.body = qs.parse(str)
        next()
    })
}